import request from '@/utils/request'

// 查询城市合伙人申请列表
export function listJoin(query) {
  return request({
    url: '/business/join/list',
    method: 'get',
    params: query
  })
}

// 查询城市合伙人申请详细
export function getJoin(id) {
  return request({
    url: '/business/join/' + id,
    method: 'get'
  })
}

// 新增城市合伙人申请
export function addJoin(data) {
  return request({
    url: '/business/join',
    method: 'post',
    data: data
  })
}

// 修改城市合伙人申请
export function updateJoin(data) {
  return request({
    url: '/business/join',
    method: 'put',
    data: data
  })
}

// 删除城市合伙人申请
export function delJoin(id) {
  return request({
    url: '/business/join/' + id,
    method: 'delete'
  })
}
